/**
 * Created by Administrator on 2017/4/24.
 */
var SeamlessScroll = require('../../../../src/libs/seamless-scroll');
var NewInvestList = React.createClass({
    getDefaultProps:function(){
        return{
            data: {
                list:[],
                config: {
                    speed: 33,  //滚动速度
                    type: 1    //1：无缝滚动，2：间歇滚动:只有向上滚动的场景
                }
            }
        }
    },
    render:function(){
        var list = this.props.data.list;
        var config = this.props.data.config;
        return(
            <div className="mod-investment f-left">
                <h3>最新投资</h3>
                {list.length > 0 ?
                    <div id="colee" className="sroll">
                        <div id="colee1">
                            <SeamlessScroll config={config}>
                                <ul style={{minHeight:"210px"}}>
                                    {
                                        list.map(function (item, index) {
                                            return (
                                                <li>{item.PayUserName}<span
                                                    className="money"><b>{item.PayAmount}</b>元</span><span
                                                    className="data">{"[" + item.PayTime + "]"}</span></li>
                                            )
                                        })
                                    }
                                </ul>
                            </SeamlessScroll>
                        </div>
                        <div id="colee2"></div>
                    </div> :
                    <div className="notdata"><img src="../content/images/img9.jpg"/>暂无记录！</div>
                }
            </div>
        )
    }
});
module.exports = NewInvestList;